package com.weaver.openapi.service;

import com.weaver.openapi.pojo.flow.params.*;
import com.weaver.openapi.util.*;
import java.util.*;
import cn.hutool.http.*;
import com.alibaba.fastjson.*;
import com.weaver.openapi.pojo.flow.res.*;

public class FlowService
{
    public static FlowResultVo createFlowV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("id", flowVo.getId());
        paramMap.put("datamap", flowVo.getDatamap());
        paramMap.put("flowName", flowVo.getFlowName());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/create").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo createFlowV3(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("id", flowVo.getId());
        paramMap.put("datamap", flowVo.getDatamap());
        paramMap.put("flowName", flowVo.getFlowName());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v3/create").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo destroyFlowV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("id", flowVo.getId());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/destroy").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo updateFlowV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("id", flowVo.getId());
        paramMap.put("datamap", flowVo.getDatamap());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/update").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo approveFlowV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("id", flowVo.getId());
        paramMap.put("datamap", flowVo.getDatamap());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/approve").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo approveFlowV3(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("id", flowVo.getId());
        paramMap.put("datamap", flowVo.getDatamap());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v3/approve").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo classifyFlowV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final String resJson = ((HttpRequest)HttpRequest.get(host + String.format("/workflow/v2/classify?access_token=%s&userid=%s", flowVo.getAccessToken(), flowVo.getUserid())).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo getFormByCategoryIdV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final String resJson = ((HttpRequest)HttpRequest.get(host + String.format("/workflow/v2/getFormByCategoryId?access_token=%s&userid=%s&categoryId=%s", flowVo.getAccessToken(), flowVo.getUserid(), flowVo.getCategoryId())).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo getFieldByIdV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final String resJson = ((HttpRequest)HttpRequest.get(host + String.format("/workflow/v2/getFieldById?access_token=%s&userid=%s&id=%s", flowVo.getAccessToken(), flowVo.getUserid(), flowVo.getId())).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo getInfoByIDV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final String resJson = ((HttpRequest)HttpRequest.get(host + String.format("/workflow/v2/getInfoByID?access_token=%s&userid=%s&id=%s", flowVo.getAccessToken(), flowVo.getUserid(), flowVo.getId())).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo getAllByIdV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final String resJson = ((HttpRequest)HttpRequest.get(host + String.format("/workflow/v2/getAllById?access_token=%s&userid=%s&id=%s&pageNo=%s&pageSize=%s", flowVo.getAccessToken(), flowVo.getUserid(), flowVo.getId(), flowVo.getPageNo(), flowVo.getPageSize())).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo getTodoDataV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final String resJson = ((HttpRequest)HttpRequest.get(host + String.format("/workflow/v2/getTodoData?access_token=%s&userid=%s&pageNo=%s&pageSize=%s", flowVo.getAccessToken(), flowVo.getUserid(), flowVo.getPageNo(), flowVo.getPageSize())).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo getFinfishDataV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final String resJson = ((HttpRequest)HttpRequest.get(host + String.format("/workflow/v2/getFinfishData?access_token=%s&userid=%s&pageNo=%s&pageSize=%s", flowVo.getAccessToken(), flowVo.getUserid(), flowVo.getPageNo(), flowVo.getPageSize())).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo queryStatFormDatasForFlowV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("formId", flowVo.getFormId());
        paramMap.put("param", flowVo.getParam());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryStatFormDatasForFlow").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowOperateResultVo queryChangedFormsByTypeV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("type", flowVo.getType());
        paramMap.put("datamap", flowVo.getDatamap());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryChangedFormsByType").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowOperateResultVo)JSONObject.parseObject(resJson, (Class)FlowOperateResultVo.class);
    }
    
    public static FlowOperateResultVo queryChangedFormsAllTypeV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("datamap", flowVo.getDatamap());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryChangedFormsAllType").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowOperateResultVo)JSONObject.parseObject(resJson, (Class)FlowOperateResultVo.class);
    }
    
    public static FlowResultVo queryChangedFlowsByTypeV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("formId", flowVo.getFormId());
        paramMap.put("type", flowVo.getType());
        paramMap.put("datamap", flowVo.getDatamap());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryChangedFlowsByType").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo queryChangedFlowsAllTypeV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("formId", flowVo.getFormId());
        paramMap.put("datamap", flowVo.getDatamap());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryChangedFlowsAllType").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo queryFormFieldByFormIdsV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("formIds", flowVo.getFormIds());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryFormFieldByFormIds").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo queryFlowInfoByFlowIdsV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("flowIds", flowVo.getFlowIds());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryFlowInfoByFlowIds").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo queryStatFlowByFormIdsV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("formIds", flowVo.getFormIds());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryStatFlowByFormIds").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo queryFlowTodoByUsersV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("userIds", flowVo.getUserIds());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryFlowTodoByUsers").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo queryFlowFinishedByUsersV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("userIds", flowVo.getUserIds());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryFlowFinishedByUsers").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo queryStatCountByTypeV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("formIds", flowVo.getFormIds());
        paramMap.put("type", flowVo.getType());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryStatCountByType").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo queryStatCountAllTypeV2(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("formIds", flowVo.getFormIds());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/workflow/v2/queryStatCountAllType").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowRequestResultVo withdrawRequestV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("remark", flowVo.getRemark());
        paramMap.put("isremind", flowVo.getIsremind());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/core/paService/v1/withdrawRequest").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowRequestResultVo)JSONObject.parseObject(resJson, (Class)FlowRequestResultVo.class);
    }
    
    public static FlowRequestResultVo rejectRequestV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("remark", flowVo.getRemark());
        paramMap.put("otherParams", flowVo.getOtherParams());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/core/paService/v1/rejectRequest").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowRequestResultVo)JSONObject.parseObject(resJson, (Class)FlowRequestResultVo.class);
    }
    
    public static FlowResultVo getAllWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getAllWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowListResultVo getAllWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getAllWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowResultVo getToDoWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getToDoWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowListResultVo getToDoWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getToDoWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowResultVo getHandledWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getHandledWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowListResultVo getHandledWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getHandledWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowResultVo getMyWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getMyWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowListResultVo getMyWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getMyWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowResultVo getCreateWorkflowCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("wfpCode", flowVo.getWfpCode());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getCreateWorkflowCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static CreateWorkFlowListResultVo getCreateWorkflowListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("wfpCode", flowVo.getWfpCode());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getCreateWorkflowList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (CreateWorkFlowListResultVo)JSONObject.parseObject(resJson, (Class)CreateWorkFlowListResultVo.class);
    }
    
    public static FlowRequestResultVo doCreateRequestV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestname", flowVo.getRequestname());
        paramMap.put("workflowId", flowVo.getWorkflowId());
        paramMap.put("requestlevel", flowVo.getRequestlevel());
        paramMap.put("remark", flowVo.getRemark());
        paramMap.put("formData", flowVo.getFormData());
        paramMap.put("otherParams", flowVo.getOtherParams());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/core/paService/v1/doCreateRequest").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowRequestResultVo)JSONObject.parseObject(resJson, (Class)FlowRequestResultVo.class);
    }
    
    public static FlowRequestResultVo submitRequestV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("remark", flowVo.getRemark());
        paramMap.put("formData", flowVo.getFormData());
        paramMap.put("otherParams", flowVo.getOtherParams());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/core/paService/v1/submitRequest").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowRequestResultVo)JSONObject.parseObject(resJson, (Class)FlowRequestResultVo.class);
    }
    
    public static FlowResultVo deleteRequestV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("otherParams", flowVo.getOtherParams());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/core/paService/v1/deleteRequest").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo doForceDrawBackV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("otherParams", flowVo.getOtherParams());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/core/paService/v1/doForceDrawBack").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowResultVo doForceOverV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("otherParams", flowVo.getOtherParams());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/core/paService/v1/doForceOver").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowRequestResultVo doIntervenorV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("Intervenorid", flowVo.getIntervenorid());
        paramMap.put("submitNodeId", flowVo.getSubmitNodeId());
        paramMap.put("remark", flowVo.getRemark());
        paramMap.put("SignType", flowVo.getSignType());
        paramMap.put("enableIntervenor", flowVo.getEnableIntervenor());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/core/paService/v1/doIntervenor").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowRequestResultVo)JSONObject.parseObject(resJson, (Class)FlowRequestResultVo.class);
    }
    
    public static FlowResultVo saveRequestLogV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("remark", flowVo.getRemark());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/core/paService/v1/saveRequestLog").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowPathResultVo getRequestOperatorInfoV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("otherParams", flowVo.getOtherParams());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.get(host + "/api/workflow/core/paService/v1/getRequestOperatorInfo").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowPathResultVo)JSONObject.parseObject(resJson, (Class)FlowPathResultVo.class);
    }
    
    public static FlowSignResultVo getRequestLogV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        paramMap.put("otherParams", flowVo.getOtherParams());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.get(host + "/api/workflow/core/paService/v1/getRequestLog").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowSignResultVo)JSONObject.parseObject(resJson, (Class)FlowSignResultVo.class);
    }
    
    public static WorkFlowRequestInfoResultVo getWorkflowRequestV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.get(host + "/api/workflow/core/paService/v1/getWorkflowRequest").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (WorkFlowRequestInfoResultVo)JSONObject.parseObject(resJson, (Class)WorkFlowRequestInfoResultVo.class);
    }
    
    public static WorkFlowRequestStatusResultVo getRequestStatusV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.get(host + "/api/workflow/core/paService/v1/getRequestStatus").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (WorkFlowRequestStatusResultVo)JSONObject.parseObject(resJson, (Class)WorkFlowRequestStatusResultVo.class);
    }
    
    public static RequestFlowChartResultVo getRequestFlowChartV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.get(host + "/api/workflow/core/paService/v1/getRequestFlowChart").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (RequestFlowChartResultVo)JSONObject.parseObject(resJson, (Class)RequestFlowChartResultVo.class);
    }
    
    public static FlowResultVo getToBeReadWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getToBeReadWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowListResultVo getToBeReadWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getToBeReadWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowResultVo getForwardWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getForwardWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowListResultVo getForwardWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getForwardWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowResultVo getDoingWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getDoingWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowListResultVo getDoingWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getDoingWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowResultVo getCcWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getCcWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowListResultVo getCcWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getCcWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowResultVo getBeRejectWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getBeRejectWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static FlowListResultVo getBeRejectWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getBeRejectWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowListResultVo getProcessedWorkflowRequestListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getProcessedWorkflowRequestList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowListResultVo)JSONObject.parseObject(resJson, (Class)FlowListResultVo.class);
    }
    
    public static FlowResultVo getProcessedWorkflowRequestCountV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        paramMap.put("condition", flowVo.getCondition());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getProcessedWorkflowRequestCount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static WorkFlowNextOperatorResultVo getRequestNextOperatorV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("requestId", flowVo.getRequestId());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.get(host + "/api/workflow/core/paService/v1/getRequestNextOperator").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (WorkFlowNextOperatorResultVo)JSONObject.parseObject(resJson, (Class)WorkFlowNextOperatorResultVo.class);
    }
    
    public static FlowResultVo getAllByIdV3(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/x-www-form-urlencoded");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("id", flowVo.getId());
        paramMap.put("param", flowVo.getParam());
        paramMap.put("pageNo", flowVo.getPageNo());
        paramMap.put("pageSize", flowVo.getPageSize());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.get(host + "/workflow/v3/getAllById").form((Map)paramMap).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (FlowResultVo)JSONObject.parseObject(resJson, (Class)FlowResultVo.class);
    }
    
    public static WorkflowTypeResultVo getCreateWorkflowTypeListV1(final FlowVo flowVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", flowVo.getAccessToken());
        paramMap.put("userid", flowVo.getUserid());
        paramMap.put("wfpCode", flowVo.getWfpCode());
        System.out.println(JSONObject.toJSONString((Object)paramMap));
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/workflow/list/paService/v1/getCreateWorkflowTypeList").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        System.out.println(resJson);
        return (WorkflowTypeResultVo)JSONObject.parseObject(resJson, (Class)WorkflowTypeResultVo.class);
    }
}
